<div class="contentArea">
  <div class="Item hr">
    <div class="current">图片水印设置</div>
  </div>
  <form>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
      <tr>
        <th width="200">上传的图片是否使用图片水印功能：</th>
        <td><label>
            <input value="1" name="mark[photo_markup]" <eq name='photo_markup' value='1'> checked</eq> type="radio">
            开启 </label>
          <label>
            <input value="0" name="mark[photo_markup]" <eq name='photo_markup' value='0'> checked</eq> type="radio">
            关闭</label></td>
      </tr>
      <tr>
        <th width="200">选择水印的文件类型：</th>
        <td><label>
            <input name="mark[photo_marktype]" value="0" <eq name='photo_marktype' value='0'> checked</eq> type="radio">
            gif</label>
          &nbsp;
          <label>
            <input name="mark[photo_marktype]" value="1" <eq name='photo_marktype' value='1'> checked</eq> checked="" type="radio">
            png</label>
          &nbsp;
          <label>
            <input name="mark[photo_marktype]" value="2" <eq name='photo_marktype' value='2'> checked</eq> type="radio">
            文字</label></td>
      </tr>
      <tr>
        <th>水印图片文件名：</th>
        <td><img src="/Data/mark/{$photo_markimg}" alt="水印图片" /> <span onclick="ShowHide('HELP_get_photo_markimg')" class="icon-question-sign hand" title="帮助"></span> <span id="HELP_get_photo_markimg">（如果不存在，则使用文字水印）</span></td>
      </tr>
      <tr>
        <th>上传新图片：</th>
        <td><input name="newimg" type="file" id="newimg" style="width:300">
          <br>
          你的系统支持的图片格式：{$cfg_photo_support}</td>
      </tr>
      <tr>
        <th>水印图片文字：</th>
        <td><input type="text" class="input" name="mark[photo_watertext]"  value="{$photo_watertext}"> <span onclick="ShowHide('HELP_photo_watertext')" class="icon-question-sign hand" title="帮助"></span> <span id="HELP_photo_watertext">( 请查看Data\mark\simhei.ttf字体库是否存在)</span></td>
      </tr>
      <tr>
        <th>水印图片文字字体大小：</th>
        <td><input name="mark[photo_fontsize]" class="input" type=text id="get_photo_fontsize"  value="{$photo_fontsize}"></td>
      </tr>
      <tr>
        <th>水印图片文字颜色：</th>
        <td><input name="mark[photo_fontcolor]" class="input" type=text id="get_photo_fontcolor"  value="{$photo_fontcolor}"><span onclick="ShowHide('HELP_get_photo_fontcolor')" class="icon-question-sign hand" title="帮助"></span> <span id="HELP_get_photo_fontcolor">（默认#000000为黑色）</span></td>
      </tr>
      <tr>
        <th>水印透明度：</th>
        <td><input name="mark[photo_diaphaneity]" class="input" type=text id="get_photo_diaphaneity"  value="{$photo_diaphaneity}"><span onclick="ShowHide('HELP_get_photo_diaphaneity')" class="icon-question-sign hand" title="帮助"></span> <span id="HELP_get_photo_diaphaneity">设置 GIF 类型水印图片与原始图片的融合度（0—100，值越小越透明）</span></td>
      </tr>
      <tr>
        <th>水印位置：</th>
        <td><input type="radio" name="mark[photo_waterpos]"  value="0" <eq name='photo_waterpos' value='0'> checked</eq>>
          随机位置
          <table width="300" border="1" cellspacing="0" cellpadding="0">
            <tr>
              <td width="33%"><input type="radio" name="mark[photo_waterpos]"  value="1" <eq name='photo_waterpos' value='1'> checked</eq>>
                顶部居左</td>
              <td width="33%"><input type="radio" name="mark[photo_waterpos]"  value="2" <eq name='photo_waterpos' value='2'> checked</eq>>
                顶部居中</td>
              <td><input type="radio" name="mark[photo_waterpos]"  value="3" <eq name='photo_waterpos' value='3'> checked</eq>>
                顶部居右</td>
            </tr>
            <tr>
              <td><input type="radio" name="mark[photo_waterpos]"  value="4" <eq name='photo_waterpos' value='4'> checked</eq>>
                左边居中</td>
              <td><input type="radio" name="mark[photo_waterpos]"  value="5" <eq name='photo_waterpos' value='5'> checked</eq>>
                图片中心</td>
              <td><input type="radio" name="mark[photo_waterpos]"  value="6" <eq name='photo_waterpos' value='6'> checked</eq>>
                右边居中</td>
            </tr>
            <tr>
              <td><input type="radio" name="mark[photo_waterpos]"  value="7" <eq name='photo_waterpos' value='7'> checked</eq> >
                底部居左</td>
              <td><input type="radio" name="mark[photo_waterpos]"  value="8" <eq name='photo_waterpos' value='8'> checked</eq>>
                底部居中</td>
              <td><input name="mark[photo_waterpos]" type="radio" value="9" <eq name='photo_waterpos' value='9'> checked</eq>>
                底部居右</td>
            </tr>
          </table></td>
      </tr>
    </table>
    <input type="hidden" name="act" value="save" />
  </form>
  <div class="commonBtnArea" >
    <button class="btn submit">提交</button>
  </div>
</div>
<script type="text/javascript">
$(".submit").click(function(){
    commonAjaxSubmit("{:U('sys_info_mark')}");
    return false;
});
</script> 
